package com.authsphere.security.account.api.lock;

/**
 * @program: AuthSphere
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/14 11:51
 **/
public enum AccountLockedEnum {

    LOCKED_ACCOUNT(401, "账号已锁定，请等待%s分钟后重试"),
    BAD_CREDENTIALS_RETRY(401, "密码错误，还有[%s]机会"),
    BAD_CREDENTIALS_MAX_ATTEMPT(401, "账号密码错误已达到最大次数，请等待%s分钟后重试"),
    LOCKED_ACCOUNT_PERMANENTLY(401, "账号已锁定，请联系管理员"),
    ;

    private final int code;
    private final String message;

    AccountLockedEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
